#ifndef _NETWORK_MESSAGE_H
#define _NETWORK_MESSAGE_H

#include "NetworkByteArray.h"

#include <iostream>

class NetworkMessage
{
public:
    NetworkMessage( void );
    NetworkMessage( NetworkByteArray data );
    
    ~NetworkMessage( void );
    
	unsigned char getType( void );
	void setType( unsigned char type);
	

	NetworkByteArray serialize( void );
	


private:	
	unsigned char m_type;


public:
	static const unsigned int TYPE_CHAT_MESSAGE;
	static const unsigned int TYPE_ECHO_MESSAGE;
	static const unsigned int TYPE_ECHO_REPLY_MESSAGE;
};

#endif
